Repository navigation
test(id): journal the fixture issuance in scheduling_actor (#2894 fallout) - #7925
Conversation
…lout) Two schedule tests (a_fire_the_program_refuses_stays_pending_in_the_journal, replay_reproduces_the_pending_and_fired_sets) failed on main at WorldCore::restore: "journal event at sequence 1 uses participant 1 before it was issued". Root cause: the scheduling_actor fixture mints its participant directly on WorldCore and never journals the Issued entry. Production issuance goes through WorldActor::record_issued, which persists the Issued entry as it mints, so a real journal always records issuance before any event authored by that participant. The fixture's journal was therefore a state no live path can write. Restore only began refusing it when the #2894 author validation merged (PR #4518, 2026-11-08 02:25 CST) -- the validation is correct, the fixture journal was not. Fix: scheduling_actor now appends core.issued_entry(ann.id) to its recorded journal right after minting, exactly as the actor does (the replica tests already journal issuance the same way). No production code changed; the restore validation is untouched. Verification (laptop, pkgs/id): the two tests pass; the full `cargo test` run for the package is green across every target (lib 2478, id_core 329, bin 10, all integration targets, doc tests). Unblocks: nix build of nixosConfigurations.amd toplevel on main, and with it the merged wvkbd deploy (PR #7817).
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
What broke
Two
idlib tests failed deterministically on main:world::tests::schedule_tests::a_fire_the_program_refuses_stays_pending_in_the_journalworld::tests::schedule_tests::replay_reproduces_the_pending_and_fired_setsBoth panicked at
WorldCore::restore(...).unwrap()withjournal event at sequence 1 uses participant 1 before it was issued.This also failed the
idlib test target insidenix build .#nixosConfigurations.amd.config.system.build.toplevel,blocking the merged wvkbd deploy (#7817).
Root cause — the test fixture was wrong, not the validation
The restore event-author validation for #2894 merged this morning
(PR #4518, 2026-11-08 02:25 CST). It is behaving as designed.
The
scheduling_actorfixture mints its participant by callingWorldCore::issue_capabilitydirectly and never journals theIssuedentry. Production issuance goes throughWorldActor::record_issued, which persists theIssuedentry atmint time — so a real journal always records issuance before any
event authored by that participant (the replica tests journal
issuance the same explicit way). The fixture produced a journal no
live path can write; once restore learned to refuse such journals,
the two tests that feed the fixture's raw journal to
restorefailed. The journal-gate change in #4535 only touched the version
check and builder-install persistence and is not implicated.
Fix
scheduling_actorappendscore.issued_entry(ann.id)to itsrecorded journal immediately after minting — the same entry the actor
persists in production. The journal the tests restore is now one the
real system could have written.
No production code changes. The #2894 author validation is not
weakened, no test is skipped or deleted, and no fixture state is
special-cased in restore.
Verification (laptop)
schedule_testspass.cargo testinpkgs/id— green on everytarget: lib 2478 passed / 0 failed, id_core 329, bin 10, all
integration targets (cli_integration 127, crash 18, world_dos 11,
…), doc tests 14. Tests-only change, so no other package is
affected.
Unblocks the amd toplevel build on main and the #7817 wvkbd deploy
waiting on it.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.